#[derive(Debug)]
struct User {
    username : String,
    emial : EMIAL,
}

struct EMIAL {
    e1 : String,
    e2 : i64,
}

fn main() {
    let x:&'static str = "hello";

    let mut y:String = x.to_string();
    println!("{}", y);
    y.push_str(", world");
    println!("{}", y);
    let s = String::from("abcd");
    println!("{}",s.len());
    let a = User{
        username : String::from("anpeng"),
        emial : EMIAL{
            e1 : String::from("1367621299@qq.com"),
            e2 : 10,
        }
    };
    println!("{:#?}",a);
}
